package 构造方法;

public class student_2测试类 {
    public static void main(String[] args) {
        //创建对象
        student_2 s1=new student_2();
        student_2 s2=new student_2("刘明福",21);
        System.out.println("学生"+s2.getName()+"年龄是："+s2.getAge());
        System.out.println("学生"+s1.getName()+"年龄是："+s1.getAge());
    }
}
